package com.authentications.oauth2.info;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @ClassName Oauth2Value
 * @Author xiezhuocai
 * @Description TODO
 * @Date 2021/12/20 14:14
 */
@ConfigurationProperties("spring.oauth2")
public class Oauth2Value {
    private String signing_key;//jwt令牌秘钥,其他服务要配置

    private String resourceIds;//和授权服务resourceIds对上

    private String access;//请求校验令牌scopes ,默认 #oauth2.hasScope('ROLE_API')

    public String getSigning_key() {
        return signing_key;
    }

    public void setSigning_key(String signing_key) {
        this.signing_key = signing_key;
    }

    public String getResourceIds() {
        return resourceIds;
    }

    public void setResourceIds(String resourceIds) {
        this.resourceIds = resourceIds;
    }

    public String getAccess() {
        return access;
    }

    public void setAccess(String access) {
        this.access = access;
    }
}
